<?php include "widgets/top_banner.php"; ?>
<?php echo BreadCrumb::view(); ?>
<div id="search-page">
	<?php
		while($ht = @mysql_fetch_array($hotels)){
	?>
			<div class="search-block">
				<div class="search-block-img">
					<a href="<?php echo $ht['hotel_slug']; ?>.html" title="<?php echo $ht['hotel_name'];?>">
						<img src="<?php echo $ht['photo1'];?>" alt="<?php echo $ht['hotel_name'];?> Hotel & Villa Bali" />
					</a>
				</div>
				<div class="search-block-content">
					<h2>
                    	<a href="<?php echo $ht['hotel_slug']; ?>.html" title="<?php echo $ht['hotel_name'];?>">
							<?php echo $ht['hotel_name'];?>
                        </a>
                    </h2>
					<?php
						// If star available
						if(!empty($ht['star_rating'])){
					?>
							<div class="star-rating">
								<img src="<?php echo Hotels::getStarImg($ht['star_rating']); ?>" title="<?php echo $ht['star_rating']; ?> stars" alt="<?php echo $ht['star_rating']; ?> stars" />
							</div>
					<?php
						}
					?>
					<h3><?php echo $ht['addressline1']; ?></h3>
                    <p><?php echo Hotels::limitStringOverview($ht['overview'],20); ?></p>
                    <div class="view-map"><a href="">View on map</a></div>
				</div>
				<div class="clearer"></div>
                <div class="search-block-price">
                	Rate per night from:
                    <h2><?php echo $ht['rates_currency']." ".$ht['rates_from']; ?></h2>
                </div>
			</div>
	<?php
		}
	?>
</div>